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

comm: handle final lines without \n
cp: fix argument parsing