As cars are becoming ever more dependent on software, the question of who is to blame if it causes an accident is all too important. So we asked an expert.