Autocreate main configuration if missing. Closes #19.