ruby script to create a directory structure from indented data