tools/smaz: fix the validation of retired dictionaries