Simplify expect script, make resilient to multiple continue prompts