[COOKBOOKS] Fixed regressions when versioned_cookbooks is false