Fixed the version checking logic so its actually correct and works