Correcting sudo detection