Don't rely on settings.SITE_ROOT being defined, but try a bunch of common settings keys before defaulting to GIT_REPO_DIR.