fix: sync is a built-in command
fixed some minor bugs
added RSYNC_EXTRA_FLAGS