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.
Merge pull request #96 from filipegiusti/master

Fix whitespace checker for case sensitive OSs (aka linux)