diff: Fix miscounting of --check output