refactored font files cleanup to be more flexible, work better with custom templates