[CORE] fix a minor bug with ConfigFileNotValid and ConfigFileNotFound ex...

...ceptions