packages/pkgbuild: fix a typo in pkgbuild_update.
packages/pkgbuild: do not checkout master when committing updated upstream.

By checking out a branch (with -f) one loses all changes in the working
tree;
moreover, the branch shall be already checked out at prepare time.
packages/pkgbuild: actually remove all sources before updating upstream.