pull tmp_dir to config, rename it to log_dir