Mapping between ruby hash and directory of files