Added a sensible chmod line at the end of sync.sh.
Split a line to multiple.