make logdir if it does not exist