Fix and test for find_executable.

As reported here: https://groups.google.com/d/topic/emscripten-discuss/LrsHP2EG3gM/discussion