Add node v0.10 support

The node v0.10 path module will throw exception when argument not string:

```
Warning: Arguments to path.resolve must be strings Use --force to continue.
```
The map method will give (item, index, list) three arguments, the index will be a number, list is the list array. In node v0.8, ignore the non-string argument, but node v0.10 not.