Fix check for sudo