Add version detection
Catch ndiff(1) error condition properly

An exit value of 1 corresponds to there being some difference in the
output, which means the diff never gets sent. This change will force the
exit only if there's an actual error condition of 2, per the manual
page for ndiff(1).