use g_mkdir()

instead of our own compat thing

see https://github.com/jcupitt/nip2/issues/35

thanks Benjamin
Merge remote-tracking branch 'origin/7.36'