Use ioutils for file I/O in cfg module.