Fix sudo commands for ssh

Both when using the `file` installer and the `transfer` installer it failed when using `ssh` actor and `use_sudo true`.

This fixes the issues. Sorry for no specs.