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.

Signed-off-by: Lakshan Perera <lakshan@laktek.com>