bs-commonjs-generator.js: always use forward slashes in the require path.

Since `path.resolve` is using backslashes on Windows, we ended up with different files. Just replace those with forward slashes.
Merge pull request #14876 from twbs/fix-14875

bs-commonjs-generator.js: always use forward slashes in the require path.