Updated the fix to make it backwards compatible

Of course not all users will update to the latest chef-client as soon
as it’s available, so better to make it work with older versions also
(even if they will suffer from incomplete results in that case)