fix pkg.latest bugs
use special compare method for package versions
Merge pull request #3345 from giantlock/develop

fix pkg.latest bugs