fix sudo compatability