    # File lib/phusion_passenger/platform_info/ruby.rb, line 246
            def self.locate_ruby_tool(name)
                    result = locate_ruby_tool_by_basename(name)
                    if !result
                            exeext = rb_config['EXEEXT']
                            exeext = nil if exeext.empty?
                            if exeext
                                    result = locate_ruby_tool_by_basename("#{name}#{exeext}")
                            end
                            if !result
                                    result = locate_ruby_tool_by_basename(transform_according_to_ruby_exec_format(name))
                            end
                            if !result && exeext
                                    result = locate_ruby_tool_by_basename(transform_according_to_ruby_exec_format(name) + exeext)
                            end
                    end
                    return result
            end