Modified version of the chef-client cookbook from getchef (opscode)