Making directory structure flat