Introducing a more robust directory creation

Creating intermediate directories as required using -p (if this option
is not specified, the full path prefix of each operand must already
exist which sucks.)