Fixed scp protocol issue in pegasus-transfer. Added tests.