updates build_error_models.py to work with custom prefixes