Correctly detect Open3#capture3 existance.

The commit message is not exactly right, but the fact is that method_defined? will tell you whether INSTANCES of the class with the module included responds to the given method, which is not the case for Open3#capture3. We have to use respond_to? for this case. Before this commit, your code was always using your bundled version of capture3.