cookbook needs modifications due to changes in "chef"

Cookbook does not run with current versions of chef (11.x) and needed some small changes.
See commit comments for details.