Correctly detect python in PATH