Fix bugs and improve coloring of the install script.