added msmktempfile; got rid of /dev/stdin assumption in ssh_proxycommand for portability