Support both old and new gevent.subprocess modules.