add -n (non-interactive) option to sudo