Refactor color codes into separate functions.

This allows us to use these helper functions easily in other
written programs as well.
Squelch the which command when checking deps

Which writes to stderr that the command is not found, repeated once
every second, which is quite ugly.  It is enough that the window
text suggests to us to install the command.