Handle getting git versions when we weren't inside the git repo when called