Extracted out config file reading script