generalize _find_binary to be configurable for any binary