path.h: make REPO_GIT_PATH_FUNC repository agnostic