Bash script to fix broken Time Machine NAS backups