get the right executable