fixed problem with the testing for binaries before executing scripts