Fix reading configuration files that do not end with a newline.