Improved dealing with config files for diff systems.