C++ program that switches config files