Fixed issue for duplicating variantDir builds