internal `xdg_which` function behaves incorrectly when thre is an executable of the searched-for name in the pwd
Which has two modes, one for testing the default $PATH
and one for when given an absolute or relative filepath that contains at least one slash /
. The xdg_which
helper in its current state handles these as one and therefore can get confused.