src/pm-execute-script: implement correct per-file shadowing for configs.