[COOK-4396] Wrong installation path because platform is not detected correctly.

The platform_family? command doesn't work in the attribute file, so the windows path is always generated. However, the node[platform] variable works, so I replaced it.