Fix magit/emacs launching thingy https://github.com/magit/magit/issues/862