formatting ruby dir structure