Don't use sudo inside recipes.

sudo requires a TTY without extra configuration. This change does the same
thing except that it doesn't require sudo.