These changes are needed to support ruby 1.8 for it is not always that easy to change a ruby version on a production Chef server.