Added require 'open3' when needed and available.