Fix package logic in install.sh and add modular rubygems