Correctly substitute directory names in 'python' executable.