Fix sudo check in case it is aliased

"if [[ -e $( which sudo 2>&1 ) ]]" check fails if sudo is aliased to something else such as "nocorrect sudo". Using "command" eliminates this.