check that the daemons is a member of a group before getting groups

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fork to background

Signed-off-by: Mattias Andrée <maandree@operamail.com>