fixed java cookbook version overriding from 6 to 7 for centos/rhel/fedora