Correction to backup scripts to make them work without tty present (such as with cron)