TEMPLATE_DIRS changed to tuple