still use old variable names when running hooks. dropped by accident.
we set HG_FOO (new name) and FOO (old name).
plan is to drop old names after 0.9.
fix template bug that made hgweb break.
problem found by Shun-ichi Goto <shunichi.goto@gmail.com>.
this fix tested with command template and hgweb templates.