erbium: fix template variable scoping

Change-Id: Ifef60ab9b7ced7df985443b8daf36361b2c138e3
Signed-off-by: Giuseppe Lavagetto <glavagetto@wikimedia.org>