Fix URL check in build from Git.

Existing check ignores valid git URLs with prefix, "git@", "http://" or "https://", and erroneously prepended "https://".