Another left-over: used PRGNAM instead of main_pkg.