Update gulp.js

`shouldLog` first could avoid unnecessary `semver.gt` when it is false. ;)