[cvs-nhc98] patch applied (hat): Fixed bug in hat-connect (bad refnr); allow prog or prog.hat arg to hat-check.