Allow to set template dir in tool.