Function for evaluating block if executable exists in path
Improve robustness by using with-feature