Fix get_transport_and_path for non-ssh clients

Hey, tried your paramiko-branch, had some issues with get_transport_and_path correctly parsing the correct port, here's a fix.

cc/ @jelmer