filter out the Gem.dir