[EMACS] set the correct PATH for emacs run by Window Manager

if emacs is started as an app, its exec-path is not set correctly as bash ENV,
so can't locate global.
Merge branch 'master' of github.com:baodepei/working_environment