fix check for sudo