base-files: fix getting gid from group_add_next