fix recursive copy for sftp, un a cumbersome way.  This is for #261.