Fix GetExecutablePath on Mac and Windows.