fixing path.relative problem with network shares.

fixing "path.relative() not working with network shares". problem was that on line 272 "Array.slice(start, end)" was wrongly used. The end parameter must be the index until where the array should be spliced and not the length.