Here is how to fix it:
With some help I made a TES5Edit Script:
unit UserScript;
var
slScripts: TStringList;
function Initialize: integer;
begin
slScripts := TStringList.Create;
end;
function Process(e: IInterface): integer;
var
s: string;
i: integer;
sl: TStringList;
begin
if ElementType(e) = etMainRecord then
if ElementExists(e, 'VMAD') then
Process(ElementBySignature(e, 'VMAD'))
else
Exit;
// recursively process all child elements
for i := 0 to ElementCount(e) - 1 do
Process(ElementByIndex(e, i));
if Name(e) = 'scriptName' then begin
if SameText(Copy(GetEditValue(e), 1, 5), 'TIF__') then
SetEditValue(e, '[4 letter or number prefix]_' + GetEditValue(e));
end;
if Name(e) = 'fileName' then begin
if SameText(Copy(GetEditValue(e), 1, 5), 'TIF__') then
SetEditValue(e, '[4 letter or number prefix]_' + GetEditValue(e));
end;
end;
end.
Then rename your files with this batch script
forfiles /M TIF__[whatever your mod index is]*.pex /C "cmd /c ren @file [4 letter or number prefix]_@file"
This stuff should work but I haven't tested it yet, fully.