Fixed answer-checking logic for ruby 1.8.7
Merge pull request #436 from nhr/master

Fixed answer-checking logic for ruby 1.8.7