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

Fixes #14875.