better loadNpmTask injection

I managed to add string arrays as an input for loadNpmTask; I also modified the existing test and README
That line is very hard to understand and do a lot of magic. Break it down in simpler conditional constructs.