Consider #1167329 fix for logdir option

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>