read template_dir from TEMPLATE env var for tests
enforce no use of header class in header table cell