added cleanup method to PspecDir object. Implemented in mk_pspec.py