Use javac rather than java to locate JDK

Use javac rather than java to determine ensime-default-java-home when the JDK_HOME and JAVA_HOME environment variables aren't set.