389/389_useradd.sh: Update detection of last group ID

We shouldn't be checking posixAccounts for group IDs, as this
probably does want we want in most cases, but actually is a
coincidence.  Check the group IDs for posixGroups instead.