The problem with gulp pipeline is that it replaces /src/ with /lib/ in
filenames as a regex replace operation. The regex only worked for Unix
before. Here we add a 2nd regex accomodate Windows backslashes and choose
between the two by looking if we're using path.win32. The Unix regex is
changed to only match the package/*/src. This seemingly has no effect on
the build.
Fixes T6855