Get environment variables such as $PATH from the shell