fix path splitting on windows

Quick change to the regex so paths with backslashes split properly. Could also use `require('path').sep` in place of regex?