Yes, it is hard to get that (impossible
) without any 'help', the format we use is:
Company System - Categories ...
that's why you'll find most of the dats using:
"Sinclair ZX Spectrum - Categories", instead of "Sinclair - ZX Spectrum - Categories", the later shouldn't exist at all and if there are some in that format they will change in the future, i think it is not great to have company and system sepparated ("Nintendo - 64", "Sega - Game Gear", and so on).
Anyway, that was the reason i asked if you wanted some help, i can provide you a list of folders based on datnames, a list of the valid companies or systems or something like that
As for the .sh yes, they had an extra char at the end due to being done in windows (EOL differences), if you want the fixed ones (i hope) :
http://www.tosecdev.org/TOSEC_folders%20(2009-12-27).zip