Make ostgraph create an outdir if specified and it does not already exist.