>You cause an accident by manually driving, you are legally liable.
>You release auto pilot software that causes an accident, you are legally liable.
The human behind the wheel should always be the one liable unless it can be shown that the human attempted to take corrective action and the system for some reason overrode the human or wouldn't allow the correction and "forced" the accident.