Fix URL check in build from Git.

Existing check ignores valid git URLs with prefix, "git@", "http://" or "https://". This leads to erroneously prepending "https://" to valid URLs.
This looks very similar to the function right above `IsGIT`.  Would it be better to just update that?