The mechanism of long-wave instability in a shear-thinning film flow on a porous substrate