check if an executable exist and where it is stored
From http://stackoverflow.com/questions/377017/test-if-executable-exists-in-python