Fix MACHINE determination in the setup scripts, and don't emit ugly errors from

tac if the setup failed.