get_git_version: another Python 3 fix