use Minimatch class, improves perf