def check_command(command, algo = nil)
        require 'open3'

        algo = command if algo.nil?
        begin