Updates temporary directory.