Added ergoemacs-this-command to emulate real-this-command on emacs
versions that don't support this variable.
Added work-around for emacs that don't have this-real-command.