[scripts] common.sh: install_patch function should make sure it lists patches in order.