Fixed cloud-sync script