Fix for custom zones with a misnamed .ter file not being able to generate properly