Modify copyFiles to allow recursive copying of directories with contents, if directory name is specified in file list (or matched by wildcard)