Apply changed directory structure for diagrams