Use a method compatible with mongoid-observers to determinine the version of mongoid.

Fixes #121, see #123.