fix ignoreRules option; add LICENSE for _applyRules
no longer depend on minimatch;