You tried interpolation? I get what you’re saying but I would take a step back and see if there’s another way of accomplishing this. Do you have a codepen setup?
In your package.json, change the version of gulp-if from ^1.2.5 to ^2.0.1, then run npm install to update it. This worked for me. I’m not sure why, but…it did.
I cloned a fresh copy of Sage 8.5.1 and verified that it had the correct behavior (it did). Then I replaced the list of dependencies in package.json with the dependencies from your package.json and verified that it exhibited the incorrect behavior when built (it did).
From there, I just started one by one adjusting the versions of dependencies to match those in the known-good configuration (Sage 8.5.1), and running a new build after each change to see if that dependency was the bad one. Once I got to gulp-if the behavior changed, so I knew that was the problematic version!
If you can, I’d appreciate it if you could mark my answer as a solution.