Bugfixes for remote command using paramiko