Config file is now generated on start.

This only works if a sample file is present, and it’ll also write the
current values if it’s suplementing the file.