lib/npm-exec: fix windows issues

Use `path.sep` instead of hard-coded `/` separator.

/to: @rmg please review.