Porting URL parsing from github/hub to allow for ssh configs