Make logdir more rubest.