you don't need this check, it's erroring out because map() gives resolve() 3 arguments. 
```
    var paths = filepaths.map(function(p) { return path.resolve(p); })
```
is enough. @yaymukund could you land this please?