Convert the path to the OS style on Npm.require