shutils/common.sh: setup XBPS_TARGET_MACHINE and related vars before reading pkg template.