diff --git a/lib/deployml/utils.rb b/lib/deployml/utils.rb
index <HASH>..<HASH> 100644
--- a/lib/deployml/utils.rb
+++ b/lib/deployml/utils.rb
@@ -124,10 +124,10 @@ module DeploYML
         options += ['-p', config.dest.port.to_s] if config.dest.port
 
         target = ssh_uri(config.dest)
-        command = [program,*args].join(' ')
+        command = [program, *args].join(' ')
 
         # append the target host and the command arguments
-        options += [target, command.dump]
+        options += [target, command]
 
         debug "[#{config.dest.host}] #{command}"
         return system('ssh',*options)
Don't dump the command passed to remote_sh, since it's passed in as an individual argument.