change permisson for output dir