fix log mkdir bug