Fix bug in __destruct with $removeTmpDir