Added support for setting sandbox from within emacs.