Correctly detect python in PATH
Merge pull request #1955 from paolo-sz/master

Correctly detect python in PATH