Fixed plugin version check for upgrade method