use `url.resolve` instead of `relToAbs` (fixes #2)