Allow relative URLs for the SCM script

For self-hosted SCM scripts, the scmHost value was not being calculated correctly if the source of the script was specified as a relative URL (e.g. `<script src="/scm/script.js"...`). This fixes the issue.