Fix and test for find_executable.
Merge pull request #1343 from int3/firstrun-paths

Fix and test for find_executable.