Fixes for Chef 11.

Potential fix for issue #37. A bit of a hack, but it seems to work. This also addresses an issue I ran into with sorting weight.