fix File.dir? issue with ruby 2.0
simple post for profiling ruby