More fixes to backup related scripts.