Added recursive directory creation ("mkdir -p")

Don't know if this would fit here, nor if this is the best function name.

Either way, it's a nice addition to the package.