Make template directory configurable.