NodeJS path module replacement