Fix setting attributes for Chef11

These would break in Chef11. Backwards compatible for Chef 10.x
Merge pull request #7 from racker/fix_chef11_deprecations

Fix setting attributes for Chef11