Changed path.joins to url.resolves to make it work on windows