Fix nested directory creation.