Fix temp directory