New file should fallback to the project root if the current file is outside the project

Force new files to be created in the current project if the selection is outside the project