Do local gem installs and fix gem install order