Fixed job return code checking