fixed missing / in TEMPLATE_DIRS