Join each directory part