Fix package installation.

On Chef 11, `value_for_platform("default" => { "default" => "xxx" })` returns
`{ "default" => "xxx" }` instead of the expected "xxx". This breaks package
installation. This commit makes the cookbook work on both Chef 10 and Chef 11.