Fixing Java-finding logic for Windows.

Reading registry values from JavaScript? Yup. :)
http://stackoverflow.com/questions/3930383/jre-installation-directory-in-windows

More still needs to be done.

Refs #273.