In my very humble opinion... I think the classic "corporate IP" laws should extend here. If you write software and that software belongs to your company, they should be responsible for the liability of said software. Ownership and consequences should be associated, otherwise you've misplaced the incentive for people/organizations to do the right thing.
It's hard to see a positive outcome. Blaming the driver will make people not want self-driving tech. Blaming the dev will just make them pick a less risky line of work. Blaming the company is probably the most fair, but then companies will be less likely to develop it.