colorize_lines.pl: minor logic fix