fixing JRE lookup to work on macs