Fix version compare for local/remote packages.