Fix to always use the Java version specified in JAVA_HOME

Fix from master this time pushed into activator-1.2.x to be shipped with the next release of the 1.2.x series.