Support changing emacs by environment variable
Change permission