Fixes #2714 - corrected IO#popen parameter on ruby 1.8.7