Create error-template directory if it does not exist
Merging bugfix: Create directory for error templates if nonexistent