Here you can find a good tool for chm creation
You must not to create subdirectories. Just add all your html-files
from one directory and structurize the TOC as you want and then
compile to CHM.
No need to change links between files.
Try it and you?ll like it