fix log dir and data dir path