Fix and improve output of version when we're running from a Git repo.