updating rsync pty spawn to rescue IO error for linux platform