Small fixes in the backup script