Need mkdir -p during --output build option

This is a very basic implementation that doesn't handle any edge cases, but it implements a basic recursive mkdir when specifying directories that don't exist for the `--output` option