preserve folder structure when using **/*.html as src

All html files were always written directly in dest folder, even when using "**/*.html" as src. Folder structure was therefore lost. This PR preserves folder structure, while it works as before when using "*.html"