Use Template Toolkit instead file magic for key path