Fixes some bugs with the gulp tasks.