remove template files and ignore .pid file for uwsgi