As per rb-fsevent issue #10, this tool tries to find directories that cause realpath to report incorrect case.
Usage:
find-fsevents-bugs $HOME
Clone this Git repository, then run make:
git clone git://github.com/andreyvit/find-fsevents-bugs.git
cd find-fsevents-bugs
make
./find-fsevents-bugs $HOME
You need to have Xcode installed for the build to work.