Rewrite to use ohai v7 syntax