Fixed gulp tree to replace paths properly.

The original gulp tree seems 'out of date' in the source code,
I've fixed it to do path replacements properly.