Clean up deprecation warnings
Clean up deprecation warnings

Fixes
```
WARN: method access to node attributes (node.foo.bar) is deprecated and will be removed in Chef 13, please use bracket syntax (node["foo"]["bar"])
```

3ofcoins/chef-cookbook-hostname