[COOK-3431] Fix `visudo` file validation test

Signed-off-by: Seth Vargo <sethvargo@gmail.com>