Simplify and make ANSI color parsing a bit more robust