Use g_mkdir instead of native mkdir