Fixing shell command passing to emacs in Mac