GRADLE-2906/GRADLE-2900: Different handling for directories.