fix target location for installing bundled gems

when `GEM_HOME` is set the `Gem.dir` points to it during installation and the bundled gems are installed in wrong location, this PR fixes it by using proper `gem_dir` which is displayed earlier as the target for installation.