Update mkgroups.pl

I've updated the mkgroups.pl script to work with the current state of https://www.isbn-international.org/. Hopefully the Perl script looks okay since I'm not too familiar with Perl.