Permit vendoring on nested directories

This commit adds the ability to vendor inside a nested directory. If the
parent containing directory does not exist, it is automatically created.