replace obsolete :username with :pkgname

As discussed in #1559, `:username` no longer works.

PS #1579 should have closed #1559.