Rewrite url resolving to fix problem on Windows
fix for file protocol