On the strong homotopy Lie-Rinehart algebra of a foliation