* fixed tmp directory cleanup