casecmp(b).zero? add to_i avoid call nil.zero?

On win32 platform, file system encoding not UTF-8,

cd to a non-ascii directory and run rdoc xxx, that raise a error.

----
ruby 2.0.0p353 (2013-11-22) [i386-mingw32]