Get project settings file loading earlier

This will likely fix #6917. It's not a deterministic fix (that's #6910) but it will likely fix the test.