Properly wrap logical elements together for su/sudo detection