fixed broken version compare of dpkg