[GHC] #15541: package environment files and the GHC API