fix sudo detection not working for admin user