Issue with duplicate directories.

Signed-off-by: Matt <duanemat@gmail.com>