I haven't tried modifying two config files, but you could try specifying the configuration file variable one more time in your script to make sure it's targeting the correct file.
For example, you might want to:
1. Double-check the config file path is correct
2. Add explicit file paths instead...