updating run.sh to handle multiple gems properly