Fixed path.resolve bug in node 0.10.0