Restore current directory after open/close file dialog