fix processing of last line w/o newline character in config