flatten dir structure