Fix exit code check.