Backport expansion of gemfiles in new RubyGems API