adding platform detection to apache cookbook