Past perfect continuous is preferred here as she began to wait before the director returned and thus already is removed. When the director arrived at his house ( returned home sounds more natural) Judith had been waiting for him. Past continuous is ok here as the tense just implies what she was doing at the moment of his arrival: When the director returned home Judith was waiting for the letter.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.