Refactor xmodem to use new KFile interface.