pulse: Refs #2006 improve sqlalchemy version detection