Update Proxy::Util::CommandTask to handle Ruby 1.8 and 1.9+

In Ruby 1.8.x, the return code from Open3.popen3 is always 0,
some errors will not be caught.