Index by prog_name instead of name

This is what will be logically used by the CLI and other parsers, will be
easier to find them back.