util: Add mkdir_parents()

Like mkdir_p, but discards the leaf, creating the parent directories.
2 files changed