Harden git detection to allow redirects
Most basic possible clone + vcs detection