Moved ignoreDirs and ignoreFiles into the builder object to cache the regexes.