Getting path to python exe on Windows correctly

Fixes #581.