Manual:$wgTidyBin

Details
Should be set to the path of the tidy binary if   is set.

(If you want to use a relative directory, the working directory is the directory of , i.e.  .)