Implement automatic retries for locating the binary. Fixes issue #58