Cleanup template files