Cleaning up template files