fixed exit failure code with --zip option