build_pkg: get correct values for PRGNAM etc.