fix #9. destroy temp dir when destructor is called