Rework extension files to only consider basename.

Only consider last '.' in the basename of a file.
Add core_info_list_get_display_name.

Avoids duped code in RGUI.