Moved unsets and fixed missing unset RSYNC_RSH_OPTIONS
Added parameter so global.cfg can specify rsync parameters