Add osrel and pkgname to the base pkg info.

While keeping it fast.
Unit tests fixes.