Fixing issue where NestedRepo could create empty directories