Added a trap to backup script
Streamline variable expansion
Refactored according to review and fixed wrong line number in message
Refactored trap to match ERR as well - removed output function
Merge pull request #614 from ppp0/issue-614

Backup agent script can silently die