Configure temp directory.