Mæster you're confusing run-time with compile-time.
Argh - you are right, what a stupid mistake.
Another attemt to include many files/directories whithout naming each file in the scrip is to include them as an already compiled archive (zip) and to put that archive at runtime to a temp folder. You could use the zip-plugin to extract them in the temp folder. Now you have a source and a destination folder and you could use the loop (the code above has to be fixed a bit to do that) to "backup-install" them.