Why not just `prefix = '/' + prefix`, then?

Also, indentation.