rm and makedirs outdir