installer: Ensure to only handle matching opening / closing package tags

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
installer: Fix installing packages which are part of the "Basic Setup" group

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>