For a start You could try to upgrade chd with this script:
@echo off
set old_dir=.\
set new_dir=.\CHDs_new
set chdman=.\chdman.exe
if NOT exist "%old_dir%" (
goto :EOF
)
for /F "tokens=*" %%a in ('dir /b "%old_dir%"^|find /v "chd convert.cmd"^|find /v "chdman.exe"') DO (
if NOT exist "%new_dir%\%%a" (
mkdir "%new_dir%\%%a"
)
for /F %%b in ('dir /b "%old_dir%\%%a"') do (
echo Converting: %%b
"%chdman%" copy -i "%old_dir%\%%a\%%b" -o "%new_dir%\%%a\%%b"
)
)
Just make new txt file copy entire text from code area and name it convert.cmd, also put chdman.exe (latest one from version 172) along with this script in directory where You have chds. After You run it after few hours will give You all chds upgraded to newest format in directory CHDs_new. Move entire CHD_new directory outside main roms directory.
After this just give clrmamepro job to scan entire mame roms directory. It should give You information what chds are with wrong version or not needed/bad files. If some files can be copied just replace it with from CHDs_new and download remaining from internet.