repaired rewriting of ddms.cfg file