Handling environment variables in Emacs on OSX and Linux

Dealing with environment variables in OSX and Linux