fix cursor in minibuffer for emacs24.3 or later

Cursor does not move by minibuffer, in Emacs24.3 or later.
It is the action of it is written in the comments.
I was modified to set the value automatically from a version of Emacs.