add RUBY_VERSION to environment files, fix #2912