Fixed file transfer for older Ubuntu versions, and fixed multiple IP addresses issue