Multiple fixes for discovering repo url for non .com repos.

+ Need to chomp the last \n from `git ls-remote`
+ Not all GH enterprise repos support https. Use http and GH will
  automatically rewrite to https as needed
+ Need to replace the tld: correctly.