Use configparser instead of convoluted file read.