Adds ruby 1.8 compatibility
Fixes incorrect do .. end syntax