This relies on bash (does not work with dash)
Remove some debug
Remove some output that causes problems with the mailer (can re-introduce when there’s a verbose mode)