Handling environment variables in Emacs on OS X and Linux