Correct loading of functional test URLs generated by `require.toUrl`

Fixes #111.