Fix dependencies for sys-upgrade