repo: refactor global config loader function Pull the global configuration loader out of the symlink check so that it can be re-used.