You don't have to handle path normalizing here by yourself, use `path.normalize(paths.join('/'))` to have it for free.