We don't give the deployer user sudo rights on the server, so this patch is necessary to stop some of the commands that use sudo from trying to use it.
do not use sudo when use_sudo is false
Hm, I think I'd like to have a sudo that returns that ternary to simplify the code.
resolving merge conflict
adding a utility function to DRY up the code
I think this is what you are after - let me know if you'd like other changes.