Fix zero exit status check