Fix RelativeTo if sourcePath is longer than destinationPath

RelativeTo didn't work properly if sourcePath is longer than destinationPath