Fix bad_groups detection in mac_user.py