Add check for emacs version 24