replaced path.join with path.normalize and manual /

path.join creates paths with \ as separator in windows witch is a wrong
separator for a url.
i replaced the path.join with path.normalize and manual concating with /
as the separator