[COOK-3908] - JAVA_HOME points to a non-existent directory on Ubuntu 10.04

ONLY newer Debian and Ubuntu includes the architecture in the full JDK path.