use templateDir instead of PROGDIR

it changes less, and should never change