This PR introduces a problem though, as you're assuming the hostname always has to be last, which we can't guarantee.. so I think specifically for cloning it needs to handle the hostname as a %s placeholder.