Make the setting of the Sim.G4Version flag more robust.
The main change is a tweak to the logic to fix the case of G4Version
being configured to match the version used to produce background inputs (presampled RDOs) in Fast Chain jobs even if that is not the version present in the current release.
Tagging @pagacova
Edited by John Derek Chapman