use last definition of ruby in Gemfile and .versions.conf, fix #2745