use node api
fixed bug
Merge pull request #16 from lichunqiang/master

Refactor with `path.delimiter`