configure: match regtest ref files more strictly