Fix GetExecutablePath and a test on Windows.