Replace all path.join calls with url.resolve for cross-platform compatibility