Fix IOError when writing to settings file