sh: Fix $? in heredocs on simple commands.