install default plugins via bundler

Fixes #2107
handle vendored/nonvendored ruby and reset env vars

Fixes #2107
fix gem_home setting in environment.rb

Fixes #2107