Enhancement in security and robustness

The following items have been changed (according to BRAS-429):
- Added check to see if mail log is writable
- Added "single transaction" to database dump to make the process non-blocking
- Checks to prevent accidental recursive deletion of root file system
- Typo fix