Remove outdir from filename.