Make the regex for the prompt check less generic

Diagnosis, test code and fix by Daniel Stadie
The test requires WWW::Mechanize::Firefox and lives
in that module.