How about folding the `mkpath` in here so formulae don't have to request it specifically?