Fix bug caused by passing more then one args to path.resolve

`array.map` calles mapping function with not just element, but also index array etc... Wrap `path.resolve` into anonymous fn to avoid passing those.