fixed bug in logdir name