make sure no action is taken when sudo is missing, closes #1886