fixed mkdir filemode to 0666