Bugfix: log dir creation