Add support for non-installed java distros

Allow JavaInstallation to reference the root of a java installation. If
the value points at a valid directory, then try that as JavaHome