Correctly detect path separator in pre-0.8 node

`path.sep` was added in node v0.8. In previous version we need to detect separator using `process.platform` property.