Fix use of `find-file-hooks' which is obsolete
Improve `emacs-process-p'