Fix bug in gulp and grunt functions.