update temporary directory.