Script to convert ibd output to more sensible format