Fix sudo check

Add a better sudo check to ensure that it was setup as passwordless