utils/generate-makefile.sh: integrate and remove utils/prefetch-pkg.sh, fixing bugs.
Makefile.template-pacman: do not cd into "build directory" (which won't exist for a native package).