fix retest.pl run failed problem, caused by the last commit. b/c TMP_LOG_DIR is NULL