Fix build by updating proper pkg.h for pkg repo -o output_dir