refactor check emacs version