resolves template directory from config