fixed TEMPLATE DIRS paths