fixed bug in logdir location