Fixed a bug where finding an executable may improperly select a folder with the same name