making sure log dir exists