Fix URL identification code

It was incorrectly identifying Windows paths as URLs.
Use correct dojo/node module for the loader in use
WIP compat layer unit tests