shutils/common.sh: fix remove_autodeps when not building any pkg.