COOK-2728 Java cookbook does not properly set JAVA_HOME for ubuntu 12.04...

This commit fixes the incorrectly set JAVA_HOME for ubuntu12.04 when using openjdk 6 or 7.

http://tickets.opscode.com/browse/COOK-2728