Clean up template files