A 1940 classic that was almost turned down by Gary Cooper was named one of the greatest Westerns of all time.