Some lint adjusts after run rubocop

This seems like an important conceptual change of code that inner block `versions` does not overshadow outer `versions` variable. Sounds reasonable to merge this change in order to make the code clearer and more readable.

(I understood it wrong the first 3 times I saw it ! )