Some ideas for Windows here: https://stackoverflow.com/questions/3855956/check-if-an-executable-exists-in-the-windows-path/3856090 Not sure how hard it is to make this work cross-platform.