add --extensions flag for gem pristine on new rubygems, fix #2684