make version detection  more reliable