Bugfix: log directory was not created if missing