[MSBuild] Fix building unsaved project with relative imports