Automatically create config file