Fix for CHEF-3255

Includes fix for RubyGems older than 1.8