Make sure log dir exists.