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