only call mail-on-failure if sendmail is present