minor fixes in backup script