strip git remote part from egg during freeze

This should solve #1083 by removing remote name when pip freeze is run and git clones are installed.
Does this look feasible?
This docstring should be supplanted to the new function (line 156 in this commit)