[fix] Avoid pathname modification.

When using unix sockets it doesn't make sense to replace the pathname of the
source url with the target pathname since this contains the path to the unix
socket.