if `patterns` is a string, use minimatch directly.