FIxes #5695: adapt relay server scripts to have dynamic groups