Add array support for multiple glob patterns

use lodash for some more stuff.