Extrude along curve does not rely on the actual location of the curve, only the curves shape and direction. That shape is interpreted from the profile onward. (Essentially a sum surface). The flipping is because some of your curves are flipped (they start at the higher point of the curve and are drawn downward). Flip those curves direction.