[COOK-4705] Fix ruby 1.8 support

https://tickets.opscode.com/browse/COOK-4705