comm: handle final lines without \n
Merge pull request #205 from ebfe/comm

comm: handle final lines without \n