A slender rivulet of a power-law fluid driven by either gravity or a constant shear stress at the free surface