base: template context fix

* Fixes issue where the template variable files was overwritten by
  Invenio.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>