Consider #1167329 fix for logdir option

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Merge pull request #3 from bogdando/logging_fixes

Logging fixes