sync.sh: support debug flag $SYNC_DEBUG