Make DNEnvironment.template_file configurable

Unless I’m missing something, the current implementation means that you can’t actually configure this.