Fix path.relative on windows network shares

Array.prototype.slice takes `(startIndex, endIndex)` rather than `(startIndex, length)`.  If your path starts with `//`  or `\\` there will be two empty spaces at the start, which would lead to the last two parts of the path being chopped off.