The `diagrams` tool now checks (and, if necessary, fixes) the paths passed using the option `omit_path_prefixes/1` for an ending slash