fix path of executable on windows (when exe taken on PATH)