Fix issue with Windows style path separators

`resolveUrl` was written for URLs and not file paths with `\` in them. By replacing all `\` with `/` things works on Windows too.

Fixes #312