Use minimatch for resultPatterns.