Fix for duplicate key/value pairs being written to settings.cfg, Bug #755

This should do it for now, we need to discuss the configuration handling. I'm sure some of graffy's code is of use in the launcher.