fix parsing of config file without trailing newline