Use g_file_make_directory_with_parents()

Now that this function is in glib, better to use it rather than bundle
an older copy of this code.

https://bugzilla.gnome.org/show_bug.cgi?id=735006