remove all loaded package while running a template (like dependecies for named pkgs)
ignore Emacs tmp files