Name of executable to search. Should be base name or absolute path. Relative paths will not work. If it's an absolute path, this function does not try to append extensions.
Range of directories where executable should be searched.
Range of extensions to append during searching if fileName does not have extension.
Absolute path to the existing executable file or an empty string if not found.
binPaths, executableExtensions
Find executable by fileName in the paths.