- fixed logDir initiated before fork