Better search for JDK homes on Ubuntu.

Use canonicalized paths to match Java home with one reported by JVM.