fix config check, only init sguillogger when there is a log dir