Fix problem with falling back to old regexp engine if it is already old