CHEF-4456(2): Knife cookbook site share fails with Ruby 2

http://tickets.opscode.com/browse/CHEF-4456

Replaces issue #955.