fix MartinNowak's finding - wildcard copyDirs should be applied to directories only