Move GEM_PATH part of rubygems' setup hook to ruby

Fixes #1413

Signed-off-by: Shea Levy <shea@shealevy.com>