dub: rework patch to match upstream version