Update grit_ext.rb

sorry !!! the if is not right in ruby!
Merge pull request #2 from yehaha9876/patch-2

Update grit_ext.rb