Change logic on Emacs version check.

The original version works for Emacs 24, but nothing beyond that. I ran into this because the latest Emacs head is reporting its version as `25.0.50.1`.