And those design flaws are being addressed. Google can no longer do the "dutch sandwich" and "double irish" after 2020.
Of course those companies will just search out another legal alternative to avoid paying taxes. And that is well within their rights.
Frankly, it doesn't matter. Tax avoidance is as old as man himself. There will always be another way. Often set up and operating costs are a major driver for tax strategies, and for a company the size of Google, this doesn't matter.
You have multinationals getting around a design flaw in the US tax system, by acquiring a foreign entity and going abroad.