fixed backup directory check