Retry bundle install multiple times to avoid build error on rubygems failures.