WIP: alternative Pkg.clone without regex

I didn't realize that `basename` could take urls like "git@github.com:JuliaLang/JSON.jl.git"

This is a potential alternative to #6141 - but I need help testing to see if `basename` works the same on windows.