[COOK-2904] - refactor ruby_block "update-java-alternatives"

* Move openjdk packages to an attribute
* Use Opscode::OpenJDK class helper to get java location
* Replace the ruby_block with a bash command
* Update default spec to set the platform / version so helper library
  gets correct data