Straighten out local-remote-delegate logic in rsync action module