Normalize directory structure