Added break once we find a match in the directory mappings