[COOK-4231] Fix for group creation problem

There may be a more elegant way to do this (than using "dynamic resources"), but this way works for me.

(There don't appear to be any tests for this Cookbook ... notwithstanding what Contributing.md says.)