chcpu: cleanup stdout/stderr usage

Signed-off-by: Karel Zak <kzak@redhat.com>