Don't limit on the first directory found in the upgrade-path. It follow the same behavior regarding scripts found in the `maintenance` directory and the ones in the local `upgrades` directory of modules. opw-2868713 closes odoo/odoo#111087 X-original-commit: d2e6c9d5010ab8092eff37775e92b486f89d28fc Signed-off-by: Christophe Simonis <chs@odoo.com>