fix isroot testcase
Merge pull request #1002 from spmjs/node_0_11

fix isroot testcase for node 0.11