generate_descriptor_pkg.sh: fix bug in validation to use the right file