Write a default config file if none exists