It’s looking in the same directory as the main binary. It will also check the GENXRDPATTERN_EXECUTABLE environment variable too.
It should check the whole PATH though:
On the roadmap is to clean this up a bit so other programs can supply an XRD pattern (e.g., a Python plugin using pymatgen)