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.
instead of `'%s'`, you can just do `%q`