change git_version() to run faster under certain conditions