Correct environment name fetched in git_completion

The old method failed to normal git repositories different than Home.