We're not sure why cookbook_version would be nil here, it seems like the wrong thing to test to set this. Just accessing the metadata as noted above is probably simpler than calling #cookbook_version in #initializer.