Make it work when the config file ends with a newline