# File lib/bundler.rb, line 251
    def which(executable)
      if File.executable?(executable)
        executable
      else
        path = ENV['PATH'].split(File::PATH_SEPARATOR).find do |p|
          File.executable?(File.join(p, executable))
        end
        path && File.expand_path(executable, path)
      end
    end