reset cwd after selectFile