The solution is simple, insist on remote telecommuting and corp-to-corp options.
Treat yourself like a business, know your numbers and expense thresholds. If a company insists on relocation and wage slave relations, factor that into your bottom line, if it does not align, look elsewhere, it is called the World Wide Web, not the drive to work web. If it cost too much for you to set up shop in their area, then it is a economically unviable option, and should be avoided.