Detect the version of Java installed on a Mac