Improve detection of sphinx-build.