remove obsolete states, add support for product type, fix flags parsing
remove obsolete DISTPRODUCT/DISTVERSION parsing
mark PRODUCT_DISTPRODUCT/PRODUCT_DISTVERSION as obsolete