build: fix CONFIG_AUTOREMOVE for packages with multiple variants