Flatten components directory