set group and supplementary groups before chroot

fixes #1197