set variables for template values early in program

Just to make it more obvious what is replaced by the conversion
of a '.in' file to the template, put variables that are expected
to be updated in the top.