Fix setting attributes for Chef11

These would break in Chef11. Backwards compatible for Chef 10.x