Resolve #1402 false negative `scripturl` fail on `mocha:`

Resolves #1402