Rewrite function `get_fqdn`. It returns fqdn for all kinds of urls now. `add_git_host_key` determines whether a url is ssh and whether its host key should be added.