created log directory if it does not exist (bug 1353)