Added JAVA_HOME detection for linux.