fixed mkdir() buf