ensure logdir gets passed through to the template trying to use it