Added support for saving snippets to template dirs