create-top.conf: Update pkg install function
create-top.conf: Update pkg install function

This commit splits the update function into two simpler functions,
do_package_install and install_packages.

FreeBSD has moved to a new form of repository configuration. It no longer
uses a conf file in /usr/local/etc/pkg.conf but a specific conf file in
/etc/pkg.

imgBSD/imgBSD