fix "executable" not being found on Windows when ending with .bat