#24096 Fixed an issue where the CURRENT_PC env var was not correctly set

This happened when the non-localized python api of a pipeline
configuration was being used to initialize a pc-specific API. Now the
CURRENT_PC is correctly pointing at the root of the pipeline
configuration.