Set the open dialog to use the current editor's filename as directory if available. Don't call chdir().