New syntax to allow specifying output dir
Script now functionnal. No support for file attributes or rights yet.