configure: Fix Graphviz test and input generation.