[debian] don't use sub-shells, and don't ignore errors from loops [applied]