setup.sh: add msg functions and make use of them instead of echo