intersect: Fix $pkgname.

No upper-caes letters. This also fixes the style a bit.