Set RUBY_VERSION after the package installations

- makes sure the upper part gets cached between different branches