Fixed wrong host was used in url_to_repo