fixing var and movin pkgfile-update to a time where pkgfile is installed