newui: Change variable scope in versions template

Fixes olgabrani/synnefo#33