Updated pathdiff with a much simpler implementation thanks to composer