Switch to using a subshell for sudo to preserve shell pipes etc.

Signed-off-by: Ken Barber <ken@bob.sh>