Fix malformed remotes