On the stability of shallow rivulets