Add a template directory constant.