Fix return value of `cpio_info`.

Prior to this commit, callers had to test for failure of `cpio_info` by
checking the number of CPIO entries located. `cpio_parse_header` now
distinguishes between a corrupted header and EOF, making it possible for
`cpio_info` to return a meaningful result.

Closes #1.