Add create leading dirs argument

Signed-off-by: Christopher Larson <kergoth@gmail.com>