Just copy whatever is in ~bidi/tex into ~texmf-dist/tex/latex/bidi but also make sure to erase bidi folder at ~texmf-dist/tex/xelatex if it already existed.