- do_maintainer: fixed support for groups

Ideally, the whole method will be refactored one day...