simplify has_executable to fix issue #112