Fix default rootpath. Do not apply to sourcemap filename. Replace windows directory seperators.