Unixify pathname for Node.js