main/bash: fix application of patches

make sure all paches are properly applied