Fix issues in alert supervisor shell script. #1323