It seems that dub tries to interpret $ORIGIN as a shell variable, and afaict there is no way to escape $ to treat it literally.