A submillimeter line survey of low-mass protostars: prelude to ALMA and Herschel