Exit install script with appropriate code

Also, display coloured output.