initialise RC before running rsync_command (so we can tell if RC was changed by rsync)