fixed a bug that sometimes error message may not be colorized. This was because `go build` prints error messages to both stdout and stderr, but previously only stdout messages were colorized.