wrap the git version in try/catch