Clean template files