fix log dir on startup