It has been widely regarded as one of the greatest war films ever made, but the real-life story behind its creation is just as remarkable