fix bug #208; have to get the gid of the user's primary group for %G