Script for generating config file