Bash script to mail if command fails