Copies sub directories into output folder correctly.