This sounds like another case of the `inquire installed devices'
command taking an excessively long time. In aha_cmd(), try changing:
wait = 15 * 20000;
to something on the order of:
wait = 90 * 20000;
and let me know whether or not that helps.