make post-flash version check more resilient.