backports-patched-frag+ack: Fix $pkgname.

This also tweaks style a bit.