Improve checker for sudo