Switch from echo to printf in scripts to support color output