add options param, supported by glob/minimatch

Add options param to functions to support glob/minimatch options object