fix bad args passed to path.resolve

In node 0.10 path.resolve only accepts string parameters but {array}.map
passes the array index and the array itself as additional parameters.

Make sure path.resolve only gets string parameters.

fix #70