Add support to the `diagrams` tool to generate file dependency diagrams for Prolog modules when using SWI-Prolog or YAP as the backend compiler