fixed an error which prevents correct execution of --exitstatus

Signed-off-by: Niels Fallenbeck <niels@fallenbeck.com>