KAZOO-2242: FIxed an issue with directories