Fix config not being generated if config file doesn't exist