Fix #2892: "rake travis" fails with can't modify frozen String

Make an unfrozen copy of RUBY_VERSION so that rubygems version can
strip! it.