Fix cut extension on file_get_catalogs