Bug fix with --outdir