George Lucas says that he already wanted the first Star Wars to be named Episode IV when it was originally released because it was the adaptation of the middle section of an extensive script he had written. But I am not sure how much truth is in that.
Gary Kurtz says otherwise, and quite understandably, anytime statements by Gary Kurtz and George Lucas are contradictory, I will believe Gary Kurtz.