Fix "diff --check" whitespace detection