fix logfile.cpp for create dir