fixed the logic of the CommandResult.failed() method

A command is successful if its return code is zero. Therefore the
evaluation of the return code must be reversed

Signed-off-by: bernhard <ber.droid@googlemail.com>