Detect JAVA_HOME from javac path if not set