Use os.path.join when comparing against os paths.
Use check_output to catch the output from testing if doxygen runs. Don't use PIPE with call.