updated save config.xml with try/except to cope with directory if not write rights