adopt same strategy with cpanm for resolving git url (git+... support)

ref. https://github.com/miyagawa/cpanminus/blob/70637d/lib/App/cpanminus/script.pm#L1748