package/base-files: move /etc/functions.sh to /lib/functions.sh