make sure provided gems are also in @global, update #1430