Memoize the actual chef_version

`chef_version` is called also directly for a log message, so move the
memoization there.