Restructure to use pty's in an attempt to get output from things that
expect to be writing to the controlling tty. However it doesn't seem
to be working in the case of scp.