Fix whitespace checker for case sensitive OSs (aka linux)

The whitespace checker was always doing the check on the first commit
because on case sensitive OSs 'head' is always a bad revision.