Update gulp
Improve MODE handling function