adjust the comparison operators in the rsync handler, fixes #1473