Fix $override_hostname template lookup

Change-Id: I4fceb03a81caa8db0622c010476ad195a6392805