Fixed directory bug with Dialog.openFile() on Windows