Improve Linux JAVA_HOME detection