asetup: fixup flags processing