caveats: if the last character isn't a newline, add one

I think it should be `caveats << s.chomp + "\n" if s.length > 0`.

I'm currently unaccess to my computer to update PR. So feel free to push your own commit.