Mirror the behavior of the exclude argument.  Fixes the bug where an npm package is provided to the ignore argument but is not ignored because it doesn't match in the globbing.