Combined effect of rheology and confining boundaries on spreading of gravity currents in porous media