[GHC] #8419: add rawSystem variant that takes an environment