missing templates dir bug

fixes #314