using `minimatch` when `location` type is string.