Add check/lib directory to the directory structure.
Replace some echo calls with calls to ErrorMsg.
Move lastupd and rootfs to check/lib/.