fix canot create output dir error if it already exists