ENH: use `mkdir -p` when creating build location

Use `mkdir -p` when create build location to create
parent directories as needed.