Fix regression, skip incompatible version during previous version detection.

Issue #44: fix regression with snapshot version detection.