changed path.joins to url.resolves fixes paths on windows