Reimplement csv-split and pbs-join