Updated the way the backups directory gets checked