explicitly construct sudo command for caputre

when using via: sudo, capture dies with "cannot send data if channel
has declared eof" on some hosts. when sudo prefix is present in
command, capture passes different :eof option to invoke_command.