Make the `diagrams` tool work again when using the DOT format