get ruby_env from repo, check rubygems version, cleanup