change file mode for alerted files.
Merge pull request #1490 from craigh/filemodefix

change file mode for alerted files.