Bug fix

Fixed a bug where saving settings files would append new settings to an
existing file rather overwriting the file.