Changes since v3: * Count the number of lines produced by update-alternatives to detect if lines were inserted. Failing to do so introduced bugs in native packages (e.g. binutils-cross-canadian-arm)