Trying to make the creation of .ini files more robust