Add missing case for SWI-Prolog to get a file parent for the `diagrams` tool