prep-packages: Fix a couple of bugs.

This fixes a missing argument on the maintainer removal line and makes
the package function checker look for 'package.*()' functions.