Isn't this `if (!dev_branch) || $? != 0` converted to `if !(dev_branch || $? != 0)` which are not equivalent? Same with a few of the diffs below.