Backported from release-9 fix for gulp build --type production task

Fix for gulp build --type production