migrate_perms_to_mode.py: fixed migration of nested BoundPath entries in bundles