Simplify mch_can_exe extracting is_executable_in_path.
Move definition of helper function below their usage.
Remove unused return values.
Add const specifiers, update comments, add assert.