Only use install_dir with --install-dir

This restores behavior of rubygems when GEM_PATH is populated with
multiple repositories and dependencies can be found in a repository that
is not being installed-into.