fixed issue for node.js 0.10.x

Warning: Arguments to path.resolve must be strings Use --force to continue.

Aborted due to warnings.