Update grit_ext.rb

sorry !!! the if is not right in ruby!