Get the instance of the GlobalsCache.
Create a new scala compiler.
Create a new classloader with the root loader as parent (to avoid zinc itself being included).
Get the actual scala version from the compiler.properties in a classloader.
Get the actual scala version from the compiler.properties in a classloader. The classloader should only contain one version of scala.