Fix Bundler installation code

Our previous Bundler idempotency code did not work if you had a version of
Bundler installed on a different Ruby version.