fixing sync-remote.sh