Fix opening a directory from CLI with emacs