destructor incorrectly clears $@ upon successful removal of temp directory