Added functionality to automatically relay a file through a remote host
if no direct path is found between hosts on different network IDs, using
a global SSH port.