Fix return code of pkg check.

Pkg check -s should exit with non-zero error code if some error
(checksum mismatch or missing file) is discovered.

Reported by:	citrin
Issue:	#484