build-sys: restore detection of sphinx