Issue #90 "glob should be String or Array, not object" error

This commit fixes issue #90 by checking if `globs` argument contains the `glob` attribute and uses it instead