[TIMOB-13374] Fixed bug where hooks could reverse --no-colors flag.