add default extension for template files