Fix for ruby 1.8.7 logic issue.
Bump to version 0.5.1