Fix nested partials processing when using files