Fix initial file selection on Windows, Mac and Gnome