Better PharTest temporary directory cleanup.