Refactor building supported platforms

The previous approach did not honor the circular validation between
cookbook and cookbook version