Use correct baseUrl when using a reverse proxy consisting of subdirectories

Fixes #250.
1. `.*` isn’t necessary
2. `=== true` isn’t necessary
3. In this case, `basePath.slice(-10) === '/__intern/'` would work just as well without the overhead of running a regular expression