Use a consistent set of permissions when creating directories

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