Fix test runner crash when not in a git repo