Fix URL creation on windows

The node `path` library is for OS specific paths, and does not support relative unix style paths being created/normalized on windows. Using the `url` API instead to fix mocha tests.