(Mostly) fix non-root installs of DXR.