Fix version number check to deal with non-numbers