Fix bug parsing config files without a trailing newline.