Improve Gemfile version matching