Adding an rbenv rehash after doing the gem install of rubygems-update so that update_rubygems is available