That's true if you think the solution has to come from more legislation and/or more taxation. Those approaches will simply encourage companies to move more of their operations to other more favorable jurisdictions.
If there's a way to save money, and companies have a responsibility to shareholders to be as profitable as (legally) possible, they'll do what they need to in order to save the money. We need to stop expecting some kind of moral accountability above what the law demands. There are plenty of natural incentives for companies to be morally responsible above what the law requires, but anything less isn't illegal unless it's illegal.
You can continue to play cat and mouse with laws and loopholes, or take a different approach...
Instead, if you consider the option of lowering taxes (on all companies) to compete with those other countries, you'll actually provide an incentive for more large companies to keep their businesses - and their taxable profits - in the US. It may be a lower tax as a percentage, but it would actually increase tax revenue in the long run, in addition to boosting the economy.
The music industry can provide a fairly good analogy: when (the original) Napster became popular along with other file sharing networks, the music industry wanted to solve the growing piracy problem by throwing people in jail and pushing for stricter laws. In the end, that did nothing to help the problem. What did help? When iTunes actually provided a decent, legal alternative to piracy, it took off and hoards of people who had been pirating music actually spent money obtaining music legally because it was reasonable and competitive (in terms of convenience) with networks like Napster. The lesson: you don't fight widespread behavior with legislation; you steer it with aligned incentives.