Fixed automatic creation of log directory