Made same version check tweaks as in KAC. (related to #20)