Move parse_url call to ensure uniform handling
parse_url() has been replace with repo_basename()
We no longer rely on a complicated sed expression
basename is used instead, it seems all edge cases are handled
The function itself is now tested in the git_url_basename testsuite
Put git shorthand handling in separate method
Also use the function in symlink_cloned_files(),
it shouldn't make a difference, but this way we avoid
future breakage and have homogenous URL handling