Use correct baseUrl when using a reverse proxy consisting of subdirectories

Fixes #250.
This code only runs in Node.js so use `dojo/node!url` instead