use node api

See [this](http://nodejs.org/api/path.html#path_path_delimiter)