fix crash of grit with ruby 2.0

fix #34