Create config file if it doesn't exist when opening it.